home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18229 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1005 b   |  46 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cs.vu.nl!news
  3. From: Kastermans B <bkaster@cs.vu.nl>
  4. Subject: Re: int::~int()
  5. Nntp-Posting-Host: galjoen.cs.vu.nl
  6. X-Mailer: Mozilla 2.01 (X11; I; SunOS 5.4 sun4m)
  7. Content-Type: text/plain; charset=us-ascii
  8. References: <317083F7.116E@public.sta.net.cn>
  9. Sender: news@cs.vu.nl
  10. Mime-Version: 1.0
  11. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  12. Date: Fri, 19 Apr 1996 14:29:18 GMT
  13. Message-ID: <3177A33E.643@cs.vu.nl>
  14. Content-Transfer-Encoding: 7bit
  15.  
  16. Xu Yifeng wrote:
  17. > Hi everybody,
  18. > can your compiler compile following program?
  19. > //------------------------
  20. > void main()
  21. > {
  22. >      int i = 0;
  23. >      i.int::~int();
  24. > }
  25. > //------------------------
  26. > is it a legal C++ program?
  27. > Regards,
  28. > Xu Yifeng
  29. This is the message I get:
  30.  
  31. "CanComp.cxx", line 3: Warning (Anachronism): main() must have a return
  32. type of int.
  33. "CanComp.cxx", line 3: Note: Type "CC -migration" for more on
  34. anachronisms.
  35. 1 Warning(s) detected.
  36.  
  37. I used CC on SunOS.
  38.  
  39. Bart Kastermans
  40.